package com.javafactroy.kunlong.data.dao.oracle;


import com.javafactroy.kunlong.data.entity.TaskLogEntity;
import com.javafactroy.kunlong.data.entity.oracle.OracleColComment;
import com.javafactroy.kunlong.data.entity.oracle.OracleColumns;
import com.javafactroy.kunlong.data.entity.oracle.OracleTables;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

//@Mapper
public interface OracleSqlMapper extends Mapper<TaskLogEntity> {

    @Select("${sql}")
    List<Map> generalSelect(String sql);

    @Select("${sql}")
    List<OracleColComment> generalSelectComments(String sql);
    @Select("${sql}")
    List<OracleTables> generalSelectTables(String sql);
    @Select("${sql}")
    List<OracleColumns> generalSelectColumns(String sql);

    List<TaskLogEntity> query(@Param("queryParam")  TaskLogEntity param);
    long count(@Param("queryParam")  TaskLogEntity param);

}
